package com.service;

import java.util.List;

import com.dao.DocumentDao;
import com.entity.Document;

public class DocumentService {
	
	private DocumentDao dao=new DocumentDao();

	public List<Document> getByPid(String id) {
		return dao.getByPid(id);
	}

	public Document getById(String id) {
		return dao.getByid(id);
	}

	public void update(Document document) {
		dao.update(document);
		
	}

	public void del(String id) {
		dao.del(id);
		
	}

	public void add(Document document) {
		dao.add(document);
	}

}
